<style lang="stylus" scoped>
  .container
    position absolute
    height 100%
    width 100%
    box-sizing border-box
    padding-top 3.7rem
    padding-bottom 5rem
    .smallNav
      width: 100%;
      height: 3.5rem;
      display: flex;
      align-items: center;
      background: rgba(0,0,0,.5);
      a 
        flex: 1;
        text-align: center;
        color: white;
        font-size: 1.25rem;
        line-height: 3.5rem;
        position: relative;
      .router-link-active::after
        position: absolute;
        content: "";
        width: 100%;
        height: .125rem;
        background-color: white;
        left: 0;
        bottom: .125rem;
      .view
        height 100%;
</style>

<template>
  <div class="single">
    <navTop title="注单"></navTop>
    <div class="container">
      <div class="smallNav">
        <router-link to="unpaid">未付款</router-link>
        <router-link to="pendingAward">待开奖</router-link>
        <router-link to="openedAward">购买记录</router-link>
      </div>
      <router-view/>
    </div>
  </div>
</template>

<script>
import navTop from '../components/navTop'
export default {
  components:{
    navTop,
  },
  methods:{
    href(){
      this.$router.push('/home')
    }
  }
}
</script>
